package com.kimoge.spring6.ioc.jdbc;

import com.alibaba.druid.pool.DruidDataSource;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author kimoge
 * @date 2025/8/25
 * @description
 */
public class JdbcTest {
    @Test
    public void test() {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-jdbc.xml");
        DruidDataSource druid = context.getBean("druid", DruidDataSource.class);
        System.out.println(druid.getUrl());
    }
}
